import http from "./http";

export const uploadFile=(file:File)=>{


    const headers = {
        'Content-Type': 'multipart/form-data'
    }
    const formData = new FormData();
    formData.append('file', file);
    return  http.post("/api/upload/add", formData, {
        headers
    })
}